/**
 * 
 */
package tp.pr5;

import java.util.Vector;

/**
 * @author usuario_local
 *
 */
public class Observable<T> {

	/**
	 * Helper class to create classes that support an observer interface.
	 */
	protected Vector<T> list = null;
	
	public Observable() {
		this.list = new Vector<T>();
	}
	
	protected void addObserver(T observer)
	{
		this.list.add(observer);
	}
	
	protected void removeObserver(T observer)
	{
		this.list.remove(observer);
	}
}
